package com.gl.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.gl.common.vo.JsonResult;
import com.gl.service.FrontProductService;

/**
 * FrontProductController负责呈现前端商品信息展示
 * @author penglin
 */
@RestController
@RequestMapping("/Front/")
public class FrontProductController {
	@Autowired
	FrontProductService fps;
	/**获取前端首页商品展示信息(5条)*/
	@RequestMapping("doFrontProduct")
	public JsonResult doFrontProduct() {
		return new JsonResult(fps.doFrontProduct());
	}
	/**获取前端首页商品展示信息(所有)*/
//	@RequestMapping("doFrontAllProduct")
//	public JsonResult doFrontAllProduct(Integer pageCurrent) {
//		return new JsonResult(fps.doFrontAllProduct(pageCurrent));
//	}
	
}



